package com.khai.app2;

import com.khai.sdk.api.SendService;
import com.khai.sdk.dto.ReqVo;
import com.khai.sdk.dto.ResVo;
import com.khai.sdk.dto.UserReqVo;
import com.khai.sdk.dto.UserResVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ApiService implements SendService {

    @Override
    @RequestMapping(value = "/feign/findUser")
    @ResponseBody
    public ResVo<UserResVo> findUser(ReqVo<UserReqVo> vo) {
        UserResVo userResVo = new UserResVo();
        userResVo.setId(System.currentTimeMillis() + "A");
        ResVo<UserResVo> resVo = new ResVo<>();
        resVo.setResBody(userResVo);
        return resVo;
    }
}
